<div class="choose-league-title"> 选择杯赛淘汰赛
<select name="select-league" id="select-league">
<?php foreach($this->my_cups as $cup){?>
  <option value ="<?php echo $cup['cup_ko_id'] ?>"
          <?php if($this->actuel_cup_id ==$cup['cup_ko_id']){
          	    echo 'selected="selected"';
          }?>><?php echo $cup['name'] ?></option>
 <?php }?>
</select>

</div>
<div class="league-title"><?php echo $this->actuel_cup_name;?></div>
<div>
<?php foreach ($this->games as $group_name =>$group){
	if(!empty($group)){?>
<div> 第<?php echo $group_name?>轮</div>
<?php foreach ($group as $game){?>


<div class="score">
<div class="away-team"><?php echo $game['away_team_name']?></div>
<div class="away-team-score"><?php echo $game['away_team_score'] ; ?></div>
<div class="home-team-score"><?php echo $game['home_team_score'] ; ?></div>
<div class="home-team"><?php echo $game['home_team_name']?></div>


</div>
<?php } 
}}?>

</div>






<script type="text/javascript">
<!--//--><![CDATA[//><!--
$(document).ready(function() {
    $('#select-league').change(function(){
        window.location=window.location.pathname + '?cup_id='+$(this).val();
    });

    

  
})

//--><!]]>
</script>

         